//
//  HSCVersionCell.m
//  Bigeyes
//
//  Created by 红沙尘 on 17/6/15.
//  Copyright © 2017年 uShareit. All rights reserved.
//

#import "HSCVersionCell.h"

@implementation HSCVersionCell
{
    __weak IBOutlet UILabel *descLabel;
    __weak IBOutlet UILabel *stateLabel;
    __weak IBOutlet UILabel *dateLabel;
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)loadVersionDict:(NSDictionary *)dict {
    
    NSString *state = dict[@"state"];
//    NSString *date  = dict[@"date"];

    descLabel.text = [NSString stringWithFormat:@"描述: %@",dict[@"desc"]];
    stateLabel.text = [NSString stringWithFormat:@"状态: %@",state];
    dateLabel.text = [NSString stringWithFormat:@"时间: %@",dict[@"date"]];
    
    //字颜色
    descLabel.textColor = [state isEqualToString:@"完成"] ? [UIColor greenColor] : [UIColor blackColor];
    stateLabel.textColor = descLabel.textColor;
    dateLabel.textColor = descLabel.textColor;
}

@end
